﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master" EnableEventValidation="false"
    AutoEventWireup="true" CodeBehind="ProvinceManagement.aspx.cs" Inherits="PreContractWeb.Administration.ProvinceManagement"
    Title="ProvinceManagement Page" %>

<%@ Register Src="../UserControl/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="divError" runat="server" visible="false">
    </div>
    <div id="divConnect" runat="server">
        <asp:ScriptManager ID="ProvinceScriptManager" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="ProvinceUpdatePanel" runat="server">
            <ContentTemplate>
                <script language="javascript" type="text/javascript">

                    function ShowPage(id) {
                        var arg = null;

                        var top = (screen.height - 350) / 2;
                        var left = (screen.width - 800) / 2;

                        arg = window.showModalDialog('EditDetailProvince.aspx?id=' + id, '', 'dialogHeight:350px;dialogWidth:800px;dialogTop:' + top + ';dialogLeft:' + left + ';center:Yes;scroll:no;hidden;resizable:no;status:no;');

                        if (arg != null) {
                            document.getElementById('<%=returnvalue.ClientID%>').value = arg[0];
                        }
                    }
                </script>
                <div style="text-align: center">
                    <input id="returnvalue" type="hidden" name="returnvalue" runat="server" />
                    <table cellspacing="0" cellpadding="0" width="95%" border="0">
                        <tbody>
                            <tr>
                                <td valign="middle" align="left" height="50">
                                    <table height="45" cellspacing="0" cellpadding="0" width="100%" border="0">
                                        <tbody>
                                            <tr>
                                                <td align="right" height="10">
                                                    <asp:Button ID="btnadd" runat="server" ToolTip="添加省份" Text="添加(Add)" CssClass="bgButton">
                                                    </asp:Button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td valign="middle" align="center" width="100%" height="100%">
                                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                        <tbody>
                                            <tr align="left">
                                                <td class="panel_body" align="left">
                                                    <!--Panel Body-->
                                                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td style="height: 100%" valign="middle" align="right">
                                                                    <asp:GridView ID="gvprovince" runat="server" Width="100%" PageSize="20" OnRowDataBound="gvprovince_RowDataBound"
                                                                        DataKeyNames="ProvinceID" AutoGenerateColumns="False">
                                                                        <PagerSettings Visible="False"></PagerSettings>
                                                                        <Columns>
                                                                            <asp:BoundField HtmlEncode="False" DataField="ProvinceCode" HeaderText="编码&lt;br/&gt;Code">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HtmlEncode="False" DataField="ProvinceCName" HeaderText="中文名称&lt;br/&gt;ChineseName">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HtmlEncode="False" DataField="ProvinceEName" HeaderText="英文名称&lt;br/&gt;EnglishName">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HtmlEncode="False" DataField="SortNumber" HeaderText="排号&lt;br/&gt;SortNumber">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            </asp:BoundField>
                                                                            <asp:BoundField HtmlEncode="False" DataField="ClusterCName" HeaderText="大区&lt;br/&gt;Cluster">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            </asp:BoundField>
                                                                            <asp:CheckBoxField ReadOnly="True" DataField="Active" HeaderText="是否可用&lt;br/&gt;Active">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            </asp:CheckBoxField>
                                                                            <asp:TemplateField HeaderText="编辑&lt;br/&gt;Edit">
                                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton ID="imgedit" runat="server" ImageUrl="../images/COMEDIT.GIF" ToolTip="编辑省份信息" />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                                                        <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                                                        <HeaderStyle CssClass="table_header"></HeaderStyle>
                                                                        <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                    <!---->
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" background="../Images/BG-Border-Bottom.png" height="5">
                                                    <img src="../Images/BG-Border-LB.png" border="0" />
                                                </td>
                                                <td width="5" background="../Images/BG-Border-RB.png" height="5">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
